package com.hongfan.config.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zcs
 * @since 2023/3/30
 */
@Slf4j
@RestController
@RequestMapping("/common/config")
@RefreshScope
public class CommonConfigController {

//    @Value("${common}")
//    private String common;
//
//    @RequestMapping("/getSharedConfigInfo")
//    public String getSharedConfigInfo() {
//        log.info("从配置中心获取公共配置的数据：" + common);
//        return common;
//    }



}
